package com.ibeeking.found.cop.service.common.dos;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ibeeking.found.common.base.BaseDO;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * @ClassName  CopDepartmentDO
 * @Description
 * @Author ibeeking
 * @Date 2021-01-15 10:44
 **/
@ToString(callSuper = true)
@Data
@TableName("cop_employee")
public class CopEmployeeDO extends BaseDO implements Serializable {
    private static final long serialVersionUID = -1L;
    /**
     * 租户id
     */
    @TableField(value = "tenant_id")
    private Long tenantId;
    /**
     * 成员UserID, 同步企微userid
     */
    @TableField(value = "employee_code")
    private String employeeCode;

    /**
     * 成员中文名称,同步企微name
     */
    @TableField(value = "employee_name")
    private String employeeName;

    /**
     * 成员英文名称,同步企微alias
     */
    @TableField(value = "nick_name")
    private String nickName;

    /**
     * 对应成员的微信openid
     */
    @TableField(value = "open_user_id")
    private String openUserId;

    /**
     * 员工登录CP端，手机号登录密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 所属主部门Id
     */
    @TableField(value = "main_department_id")
    private Long mainDepartmentId;
    /**
     * 是部门负责人，0=不是，1=是
     */
    @TableField(value = "as_leader")
    private Integer asLeader;

    /**
     * 身份证号
     */
    @TableField(value = "employee_id")
    private Long employeeId;

    /**
     * 职务信息
     */
    @TableField(value = "position")
    private String position;

    /**
     * 手机号码
     */
    @TableField(value = "mobile")
    private String mobile;

    /**
     * 性别。0=未定义，1=男性，2=女性
     */
    @TableField(value = "gender")
    private Integer gender;

    /**
     * 个人邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 企业邮箱
     */
    @TableField(value = "biz_mail")
    private String bizMail;

    /**
     * 头像url
     */
    @TableField(value = "avatar")
    private String avatar;

    /**
     * 头像缩略图url
     */
    @TableField(value = "thumb_avatar")
    private String thumbAvatar;

    /**
     * 员工个人二维码
     */
    @TableField(value = "qr_code")
    private String qrCode;

    /**
     * 座机
     */
    @TableField(value = "telephone")
    private String telephone;

    /**
     * 联系地址
     */
    @TableField(value = "detail_address")
    private String detailAddress;

    /**
     * 别名
     */
    @TableField(value = "alias")
    private String alias;

    /**
     * 状态: 1=已激活，2=已禁用，4=未激活，5=退出企业
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 所属企业简称
     */
    @TableField(value = "external_corp_name")
    private String externalCorpName;

    /**
     * 绑定的视频号参数json
     */
    @TableField(value = "json_wechat_channels")
    private String jsonWechatChannels;

    /**
     * 扩展属性Json
     */
    @TableField(value = "json_ext_attr")
    private String jsonExtAttr;

    /**
     * 对外展示属性Json
     */
    @TableField(value = "json_external_attrs")
    private String jsonExternalAttrs;

}
